package com.yuda.tools.downloadanswer.Oss;

import com.aliyun.oss.OSS;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Component
public class OssMap {

    private static final Map<String, OSS> cacheMap = new ConcurrentHashMap<>();

    public static void put(String k, OSS v) {
        cacheMap.put(k, v);
    }

    public static OSS get(String k) {
        return cacheMap.get(k);
    }

    public static Map<String, OSS> getCacheMap() {
        return cacheMap;
    }
}
